<?php
	include_once("login.php");
	$conn = new mysqli($host,$user,$passwd, $database)
	or die("SQL connect error: ".mysqli_connect_error());
  
	$id = $_REQUEST["username"];

	$stmt = mysqli_prepare($conn,"SELECT Zip FROM ContactsBackup WHERE Username = ?");
	mysqli_stmt_bind_param($stmt, 's', $id);
	mysqli_stmt_execute($stmt);
	mysqli_stmt_store_result($stmt);

	$zip = null;
	mysqli_stmt_bind_result($stmt,$zip);
	mysqli_stmt_fetch($stmt) or die("Error on fetch");
	print $zip;

	mysqli_stmt_close($stmt);
	mysqli_close($conn);
?>
